################################################
#
# Events for Sweden
#
# ID 70000 - 79999 is reserved
#
#
#################################################
#
# Written by Sara Wendel-rtqvist

### Coup d'etat in Sweden ###
country_event = {
	id = 70000
	title = "EVTNAME70000"
	desc = "EVTDESC70000"
	
	major = yes
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		925 = {
			NOT = {
				controlled_by = SWE
			}
		}
		919 = {
			NOT = {
				controlled_by = SWE
			}
		}
		931 = {
			NOT = {
				controlled_by = SWE
			}
		}
		934 = {
			NOT = {
				controlled_by = SWE
			}
		}
		NOT = {
			has_country_flag = charles_xiii_flag
		}
	}
	
	mean_time_to_happen = {
		months = 60
	}
	
	option = {
		name = "EVTOPT_OK"
		set_country_flag = charles_xiii_flag
		add_leader = 57024
		define_ruler = {
			name = "Karl XIII"
			picture = "SWE_KarlXIII"
			ADM = "5"
			DIP = "8"
			MIL = "5"
		}
		country_event = 70001
	}
}

### A new king in Sweden ###
country_event = {
	id = 70001
	title = "EVTNAME70001"
	desc = "EVTDESC70001"
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPT_OK"
		prestige = 205
	}
}

### Charlotta Seuerling - blind singer ###
country_event = {
	id = 70010
	title = "EVTNAME70010"
	desc = "EVTDESC70010"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		total_ideas = 3
	}
	
	mean_time_to_happen = {
		months = 60
		
		modifier = {
			factor = 0.5
			has_country_flag = swedish_school_deaf_flag
		}
	}
	
	option = {
		name = "EVTOPT_OK"
		idea_points = 25
	}
}


### Esaias Tegnr ###
country_event = {
	id = 70020
	title = "EVTNAME70020"
	desc = "EVTDESC70020"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		total_ideas = 5
	}
	
	mean_time_to_happen = {
		months = 60
		
		modifier = {
			factor = 0.5
			has_country_flag = gothic_league_flag
		}
	}
	
	option = {
		name = "EVTOPT_OK"
		idea_points = 50
		prestige = 10
	}
}

### Linnska institutet ###
country_event = {
	id = 70030
	title = "EVTNAME70030"
	desc = "EVTDESC70030"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		NOT = {
			has_country_modifier = linneska_institutet
		}
	}
	
	mean_time_to_happen = {
		months = 60
	}
	
	option = {
		name = "EVTOPT_OK"
		add_country_modifier = {
			name = linneska_institutet
			duration = 365
		}
	}
}

### Jns Jacob Berzelius - Lrbok i Kemien ###
country_event = {
	id = 70040
	title = "EVTNAME70040"
	desc = "EVTDESC70040"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		total_ideas = 5
	}
	
	mean_time_to_happen = {
		months = 60
	}
	
	option = {
		name = "EVTOPT_OK"
		idea_points = 50
	}
}

### Allmnna institutet fr Blinda och Dfstumma (The Public Institute of the Blind and Deaf) ###
country_event = {
	id = 70050
	title = "EVTNAME70050"
	desc = "EVTDESC70050"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		NOT = {
			has_country_modifier = institute_blind_deaf
		}
		NOT = {
			has_country_flag = swedish_school_deaf_flag
		}
	}
	
	mean_time_to_happen = {
		months = 60
	}
	
	option = {
		name = "EVTOPT_OK"
		set_country_flag = swedish_school_deaf_flag
		add_country_modifier = {
			name = institute_blind_deaf
			duration = 365
		}
	}
}

### Gta Canal ###
country_event = {
	id = 70060
	title = "EVTNAME70060"
	desc = "EVTDESC70060"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		888 = { #Mariestad
			controlled_by = SWE
			NOT = {
				has_province_modifier = gota_canal
			}
		}
		884 = { #Linkping
			controlled_by = SWE
			NOT = {
				has_province_modifier = gota_canal
			}
		}
		885 = { #Norrkping
			controlled_by = SWE
			NOT = {
				has_province_modifier = gota_canal
			}
		}
		868 = { #Lysekil
			controlled_by = SWE
			NOT = {
				has_province_modifier = gota_canal
			}
		}
	}
	
	mean_time_to_happen = {
		months = 60
	}
	
	option = {
		name = "EVTOPT_OK"
		888 = { #Mariestad
			add_province_modifier = {
				name = gota_canal
			}
		}
		884 = { #Linkping
			add_province_modifier = {
				name = gota_canal
			}
		}
		885 = { #Norrkping
			add_province_modifier = {
				name = gota_canal
			}
		}
		868 = { #Lysekil
			add_province_modifier = {
				name = gota_canal
			}
		}
	}
}

### Swedish Act of Succession ###
country_event = {
	id = 70070
	title = "EVTNAME70070"
	desc = "EVTDESC70070"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		exists = FRA
		exists = DEN
		has_country_flag = charles_xiii_flag
		NOT = {
			has_country_flag = bernadotte_flag
		}
		NOT = {
			has_country_flag = crown_prince_charles_august_flag
		}
		NOT = {
			has_country_flag = frederick_flag
		}
	}
	
	mean_time_to_happen = {
		months = 60
		
		modifier = {
			factor = 0.5
			has_country_flag = crown_prince_charles_august_flag
		}
	}
	
	option = {
		name = "EVTOPTA70070" #Bernadotte elected heir (SWE ID 57005, FRA ID 24033)
		set_country_flag = bernadotte_flag
		country_event = 70071
		FRA = {
			relation = {
				who = SWE
				value = 50
			}
		}
	}
	option = {
		name = "EVTOPTB70070" #Charles August
		set_country_flag = crown_prince_charles_august_flag
		country_event = 70072
		DEN = {
			relation = {
				who = SWE
				value = 50
			}
		}
	}
	option = {
		name = "EVTOPTC70070" #Frederick, King of Denmark
		trigger = {
			DEN = {
				has_country_flag = frederick_VI_denmark_flag
			}
			NOT = {
				has_country_flag = frederick_not_heir_sweden_flag
			}
		}
		DEN = {
			country_event = 70073
			relation = {
				who = SWE
				value = 50
			}
		}
	}
}

#Jean Baptiste Bernadotte, Crown Prince of Sweden
country_event = {
	id = 70071
	title = "EVTNAME70071"
	desc = "EVTDESC70071"
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPT_OK"
		prestige = 15
		add_leader = 57005
		remove_leader = 57024
		define_ruler = {
			name = "Charles John Bernadotte"
			picture = "SWE_Bernadotte"
			MIL = 8
			DIP = 7
			ADM = 7
		}
	}
}

#Charles August, Crown Prince of Sweden
country_event = {
	id = 70072
	title = "EVTNAME70072"
	desc = "EVTDESC70072"
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPT_OK"
		prestige = 15
		remove_leader = 57005
		remove_leader = 57024
		define_ruler = {
			name = "Karl August"
			picture = "SWE_King"
			MIL = 7
			DIP = 6
			ADM = 7
		}
	}
}

#Frederick IV, King of Denmark
country_event = {
	id = 70073
	title = "EVTNAME70073"
	desc = "EVTDESC70073"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA70073"
		ai_chance = {
			factor = 10
		}
		set_country_flag = frederick_flag
		SWE = {
			country_event = 70074
		}
	}
	option = {
		name = "EVTOPTB70073"
		ai_chance = {
			factor = 90
		}
		set_country_flag = frederick_not_heir_sweden_flag
		SWE = {
			country_event = 70074
		}
	}
}

#Frederick VI, King of Denmark and Crown Prince of Sweden?
country_event = {
	id = 70074
	title = "EVTNAME70074"
	desc = "EVTDESC70074"
	
	major = yes
	
	is_triggered_only = yes
	
	fire_only_once = yes
	
	option = {
		name = "EVTOPTA70074"
		#trigger = {
		#	has_country_flag = frederick_flag
		#}
		prestige = 15
		remove_leader = 57005
		remove_leader = 57024
		define_ruler = {
			name = "Frederick VI"
			picture = "DEN_King"
			MIL = 6
			DIP = 8
			ADM = 8
		}
		DEN = {
			relation = {
				who = SWE
				value = 100
			}
		}
		relation = {
			who = DEN
			value = 100
		}
	}
	option = {
		name = "EVTOPTB70074"
		#trigger = {
		#	has_country_flag = frederick_not_heir_sweden_flag
		#}
		country_event = 70070
	}
}

### Gothic League (Gtiska Frbundet) ###
country_event = {
	id = 70080
	title = "EVTNAME70080"
	desc = "EVTDESC70080"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		NOT = {
			has_country_flag = gothic_league_flag
		}
		NOT = {
			has_country_modifier = gothic_league
		}
	}
	
	mean_time_to_happen = {
		months = 60
	}
	
	option = {
		name = "EVTOPT_OK"
		set_country_flag = gothic_league_flag
		add_country_modifier = {
			name = gothic_league
			duration = 365
		}
	}
}

### Royal Swedish Academy of Agriculture and Forestry ###
country_event = {
	id = 70090
	title = "EVTNAME70090"
	desc = "EVTDESC70090"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		has_country_flag = charles_xiii_flag
		NOT = {
			has_country_modifier = royal_swedish_academy_agriculture_forestry
		}
	}
	
	mean_time_to_happen = {
		months = 60
	}
	
	option = {
		name = "EVTOPT_OK"
		add_country_modifier = {
			name = royal_swedish_academy_agriculture_forestry
			duration = 365
		}
	}
}

### Frederica of Baden ###
country_event = {
	id = 70100
	title = "EVTNAME70100"
	desc = "EVTDESC70100"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		NOT = {
			year = 1809
		}
		NOT = {
			has_country_flag = charles_xiii_flag
		}
		war_with = FRA
	}
	
	mean_time_to_happen = {
		months = 60
	}
	
	option = {
		name = "EVTOPT_OK"
		relation = {
			who = FRA
			value = -10
		}
	}
}

### Princess Marie of Baden ###
country_event = {
	id = 70110
	title = "EVTNAME70110"
	desc = "EVTDESC70110"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		NOT = {
			year = 1808
		}
		NOT = {
			has_country_flag = charles_xiii_flag
		}
		BAD = {
			war_with = FRA
		}
	}
	
	mean_time_to_happen = {
		months = 60
	}
	
	option = {
		name = "EVTOPT_OK"
		relation = {
			who = BAD
			value = 20
		}
	}
}

### Hedvig Elisabeth Charlotte of Holstein-Gottorp ###
country_event = {
	id = 70120
	title = "EVTNAME70120"
	desc = "EVTDESC70120"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		has_country_flag = charles_xiii_flag
	}
	
	mean_time_to_happen = {
		months = 60
	}
	
	option = {
		name = "EVTOPT_OK"
		prestige = 10
	}
}

### Ernst Moritz Arndt ###
country_event = {
	id = 70125
	title = "EVTNAME70125"
	desc = "EVTDESC70125"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		NOT = {
			alliance_with = FRA
		}
	}
	
	mean_time_to_happen = {
		months = 60
		
		modifier = {
			factor = 0.5
			war_with = FRA
		}
	}
	
	option = {
		name = "EVTOPT_OK"
		prestige = 10
	}
}

### Fredrika Eleonora von Dben ###
country_event = {
	id = 70130
	title = "EVTNAME70130"
	desc = "EVTDESC70130"
	
	fire_only_once = yes
	
	trigger = {
		tag = SWE
		NOT = {
			has_country_flag = charles_xiii_flag
		}
		NOT = {
			has_country_flag = bernadotte_flag
		}
		NOT = {
			has_country_flag = crown_prince_charles_august_flag
		}
		NOT = {
			has_country_flag = frederick_flag
		}
	}
	
	mean_time_to_happen = {
		months = 60
	}
	
	option = {
		name = "EVTOPT_OK"
		prestige = 10
	}
}